package com.yfj.service.impl;

import java.util.List;

import com.yfj.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yfj.dao.TeacherDao;
import com.yfj.entity.Course;
import com.yfj.service.TeacherService;

@Service
public class TeacherServiceImpl implements TeacherService {
	
	@Autowired
	TeacherDao teacherDao;

	@Override
	public List<Course> getCourseList(Long teaId) {
		List<Course> cList=teacherDao.getCourseListByTeacherId(teaId);
		return cList;
	}

	@Override
	public List<Student> getStudentList(Long courseId){
		List<Student> studentsList = teacherDao.getStudentByCourseId(courseId);
		return studentsList;
	}
}
